const requireComponent = require.context('./module', true, /\w+\.vue$/)  //遍历当前目录和子目录

let comps = {}
requireComponent.keys().map(fileName => {
  let comp = requireComponent(fileName).default;
  comps[comp.name] = comp
})
export default comps;

